//
//  IWExpenseItem.h
//  SqliteTrial
//
//  Created by Aries on 11-7-29.
//  Copyright 2011年 windvoice. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ISqlite.h"


@interface IWExpenseItem : NSObject {
    int ID;
    NSString* Title;
    float Amount;
    NSString* Remark;
    BOOL IsExpense;
    NSDate* ExpenseTime;
    NSDate* CreateTime;
    
    ISqlite *database;//= @"model.db";
}

@property (nonatomic,assign) int ID;
@property (nonatomic,retain) NSString* Title;
@property (nonatomic,assign) float Amount;
@property (nonatomic,retain) NSString* Remark;
@property (nonatomic,assign) BOOL IsExpense;
@property (nonatomic,retain) NSDate* ExpenseTime;
@property (nonatomic,retain) NSDate* CreateTime;

- (id) initWithID:(int) itemID;

- (int) update;

- (int) save;

- (int) remove;

- (int) createSchema;

+ (int) removeWithID:(int) itemID;

+ (NSArray*) getList;

- (NSString*) des;

@end
